package com.hnucm.cooklife.contract.friends;

import com.hnucm.cooklife.base.IBaseView;
import com.hnucm.cooklife.bean.db.User;

import io.reactivex.Observable;

public class Contract {
    public interface IFriendModel{
        Observable<User> loadFriend(int userId);
        Observable<User> refreshFriend(int userId);
    }

    public interface IFriendView extends IBaseView{
        void onLoadFriend(User user);
        void onRefreshFriend(User user);
    }

    public interface IFriendPresenter{
        void loadFriend(int userId);
        void refreshFriend(int userId);
    }
}
